<!-- <!DOCTYPE html> -->
html(lang="zh-CN")
  head
    meta(http-equiv="Content-Type" content="text/html; charset=UTF-8")
    meta(http-equiv="X-UA-Compatible" content="IE=edge, chrome=1")
    meta(name="keywords" content="")
    meta(name="description" content="")
    meta(name="author" content="")
    meta(content="email=no" name="format-detection" )
    meta(name="format-detection" content="telephone=no" )
    meta(name="apple-touch-fullscreen" content="yes" )
    meta(name="apple-mobile-web-app-capable" content="yes" )
    meta(http-equiv="Content-Type" content="text/html;charset=UTF-8" )
    meta(name="apple-mobile-web-app-status-bar-style" content="black" )
    meta(name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,user-scalable=no" )
    //- 公共样式
    link(rel="stylesheet" href="/mobile/dest/libs/pure/pure.min.css")
    link(rel="stylesheet" href="/mobile/dest/libs/pure/grids-responsive.min.css")
    link(rel="stylesheet" type="text/css" href="/mobile/dest/views/m_sypz_offer.form/sypz_offer.css")
    //- link(rel="stylesheet" href="css/comm.css")
    //- link(rel="icon" href="./favicon.ico" mce_href="./favicon.ico" type="image/x-icon" id="icoLink")
    //- link(rel="icon" href="" mce_href="" type="image/x-icon" id="icoLink")
    title
  body
    div(id="app1")
      div
        button.pure-button.pure-button-primary 重置
        button.pure-button.pure-button-primary 查询
      div
        label 投资期限
        select
      div
        .title 列表
      div
        button.pure-button.pure-button-primary 新增
      div
        table.pure-table.pure-table-horizontal.c-table
            thead
              tr
                th 公司编号
                th 产品投资期限
                th 基准利率 
                th(v-for="item in scoreList") {{item.number}}(分)
                
                th 操作

            tbody
              tr(v-for="(item, idx) in offerList" v-bind:class="{'pure-table-odd': 0 != idx%2}")
                td(data-title='公司编号') {{item.company_id}}
                td(data-title='投资期限') {{item.tzqx}}
                td(data-title='基准利率') {{item.rate}}
                td(v-for="score_bp in item.number_tzqx" data-title='优惠幅度') {{score_bp.bp}}
                //- td(data-title='时间') {{item.init_date}}
                td(data-title='操作')
                  a.c-cont-pure-button(href="javascript:;" v-on:click.stop.prevent="onEdit(item);") 编辑
                  span &nbsp;&nbsp;|&nbsp;&nbsp;
                  a.c-cont-pure-button(href="javascript:;" v-on:click.stop.prevent="onRemove(item._id);") 删除


    //- 模块加载，入口配置
    script(type="text/javascript" src="/mobile/dest/libs/vue/vue.min.js")
    script(type="text/javascript" src="/mobile/dest/libs/vue/vue-resource.min.js")
    script(type="text/javascript" src="/mobile/dest/libs/jquery.min.js")
    script(type="text/javascript" src="/mobile/dest/views/m_sypz_offer.form/sypz_offer.js")